﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Redboil.Bfp.Service;
using Redboil.Bfp.Dao;
using Redboil.Bfp.Model;

namespace Redboil.Bfp.Component {
    public class TransportComponent : ITransportService {
        private ITransportOrderDao transportOrderDao;

        public TransportComponent(ITransportOrderDao transportOrderDao) {
            this.transportOrderDao = transportOrderDao;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public IList<TransportOrder> GetAllTransportOrders() {
            return transportOrderDao.FindAll<TransportOrder>();
        }
    }
}
